package org.reference.generic.base;

import java.util.ArrayList;
import java.util.List;

import org.reference.generic.work.Job;
import org.reference.generic.work.Machine;;

public class ReferenceParameter {

	private int referenceCmax;
	private int machineNumber;
	
	List<Job> jobList = new ArrayList<Job>();
	Machine machine = new Machine();
	
	public ReferenceParameter(int referenceCmax, int machineNumber, Job... job){
		
		this.referenceCmax=referenceCmax;
		this.machineNumber=machineNumber;
		
		for(Job j : job){
			jobList.add(j);
		}
		
	}

	public int getJobNumber() {
		return jobList.size();
	}

	public int getMachineNumber() {
		return machineNumber;
	}

	public int getReferenceCmax() {
		return referenceCmax;
	}
	
	public Job getJob(int index){
		return jobList.get(index);
	}

	public void removeJob(Job returnJob) {
		jobList.remove(returnJob);
	}

	public List<Job> getJobList() {
		return jobList;
	}

	public void setJobList(List<Job> jobList) {
		this.jobList = jobList;
	}
	

}
